package cn.edu.gues.infosystam.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 苏小小
 * @since 2020-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Template对象", description="")
public class Template implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "模板ID")
    @TableId(value = "template_id", type = IdType.AUTO)
    private Integer templateId;

    @ApiModelProperty(value = "教师ID")
    private Integer tno;

    @ApiModelProperty(value = "模板名称")
    private String templateName;

    @ApiModelProperty(value = "填报字段")
    private String templateFields;

    @ApiModelProperty(value = "模板HTML")
    private String templateContext;

    @ApiModelProperty(value = "逻辑删除（0：未删除，1：删除）")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "最后修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "教师名称")
    @TableField(exist = false)
    private String tname;


}
